package com.zhao.dota.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhao.dota.bo.AuthenticateUser;
import com.zhao.dota.model.User;
import com.zhao.dota.security.token.AccessToken;

import java.util.List;

public interface UserService extends IService<User> {

    void signUp(User user);

    String steamLoginCode(AuthenticateUser authenticateUser);

    boolean bindSteam(String code, Long steamId);

    User getByOpenId(String openId);

    AccessToken saveWechatUserInfo(String nickName, String avatarUrl, String phone, int gender);

    AccessToken saveUserInfo(String nickName, String avatarUrl, String phone, int gender);

    boolean resetPassword(Integer id);

    List<User> findByRole(String roleCode);

    void changeUsername(String username);

    boolean changePassword(String original, String changed);
}
